package com.itheima;

public class Demo5 {
    public static void main(String[] args) {
        int a = getJc(10);
        System.out.println(a);
    }

    private static int getJc(int i) {
        if (i == 1) {
            return 1;
        }
        return i * getJc(i - 1);
    }
}
